package com.fengxu.gamescript.data.vo;

import java.io.Serializable;

/**
 * 返回结果实体类
 */
public class Result<T> implements Serializable {

    private static final long serialVersionUID = 001L;

    private Integer code;

    private T data;

    private String msg;

    private Integer remainTimes;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getRemainTimes() {
        return remainTimes;
    }

    public void setRemainTimes(Integer remainTimes) {
        this.remainTimes = remainTimes;
    }

    @Override
    public String toString() {
        return "Result{" +
                "code=" + code +
                ", data=" + data +
                ", msg='" + msg + '\'' +
                ", remainTimes=" + remainTimes +
                '}';
    }
}
